export default {
  path: "/product",
  redirect: "/product/query",
  meta: {
    icon: "ri:information-line",
    // showLink: false,
    title: "产品管理",
    rank: 21
  },
  children: [
    {
      path: "/product/query",
      name: "productquery",
      component: () => import("@/views/product/index.vue"),
      meta: {
        title: "产品管理",
        roles: ["admin", "saleman"]
      }
    },
    {
      path: "/product/add",
      name: "addproduct",
      component: () => import("@/views/product/AddProduct.vue"),
      meta: {
        title: "添加产品",
        roles: ["admin", "saleman"]
      }
    },
    {
      path: "/product/list",
      name: "productlist",
      component: () => import("@/views/product/ProductList.vue"),
      meta: {
        title: "客户产品管理",
        roles: ["customer", "admin"],
      showParent: true
      }
    },
    {
      path: "/product/detail",
      name: "productdetail",
      component: () => import("@/views/product/Detail.vue"),
      meta: {
        title: "产品详情",
        roles: ["customer", "admin", "saleman"],
       // showParent: true,
       // showLink: false
      }
    },
    {
      path: "/product/category/index",
      name: "category",
      component: () => import("@/views/product/category/index.vue"),
      meta: {
        title: "产品分类",
        //是否显示
        showLink: true
      }
    }
  ]
} satisfies RouteConfigsTable;
